<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <style>
        div {
            height: 600px;
            width: 600px;
            background-color: aquamarine;
            padding: 10px;
            resize: both;
            overflow: hidden;
            container-type: inline-size;
        }

        div p {
            margin: 0;
            font-size: 1em;
        }

        @container (min-width: 100px) {
            div p {
                margin: 0;
                font-size: 2em;
            }
        }

    </style>
</head>
<body>
<div>
    <p>橶sifjasigsagsadg开一共</p>
</div>
</body>
</html>